<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-Hans-CN">

<head>
<title>add</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- VENDOR CSS -->
<link rel="stylesheet"
	href="assets/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
	href="assets/vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/vendor/linearicons/style.css">
<!-- MAIN CSS -->
<link rel="stylesheet" href="assets/css/main.css">
<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
<link rel="stylesheet" href="assets/css/demo.css">
<!-- GOOGLE FONTS -->
<link
	href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700"
	rel="stylesheet">
<!-- ICONS -->
<link rel="apple-touch-icon" sizes="76x76"
	href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96"
	href="assets/img/favicon.png">
</head>

<body>
	<!-- WRAPPER -->
	<div id="wrapper">
		<!-- NAVBAR -->
		<nav class="navbar navbar-default navbar-fixed-top">
		<div class="brand">
			<a href="/bysjxt/queryNoticeByPage"><img src="assets/img/logo-dark.png"
				alt="Klorofil Logo" class="img-responsive logo"></a>
		</div>
		<div class="container-fluid">
			<div class="navbar-btn">
				<button type="button" class="btn-toggle-fullwidth">
					<i class="lnr lnr-arrow-left-circle"></i>
				</button>
			</div>
			<!-- TOP -->
			<%@ include file="top.jsp" %>
			<!-- END TOP -->
		</div>
		</nav>
		<!-- END NAVBAR -->
		<!-- LEFT SIDEBAR -->
		<%
		request.setCharacterEncoding("UTF-8");
		String sf="";
		sf = (String)request.getSession().getAttribute("sf");
		if(sf.equals("admin")) {
			%><%@ include file="nav-admin.jsp" %><%
		}else if(sf.equals("student")) {
			%><%@ include file="nav-student.jsp" %><%
		}else if(sf.equals("teacher")) {
			%><%@ include file="nav-teacher.jsp" %><%
		}
		%>
		<!-- END LEFT SIDEBAR -->
		<!-- MAIN -->
		<div class="main">
			<!-- MAIN CONTENT -->
			<div class="main-content">
				<div class="container-fluid">
					<h3 class="page-title">选题模块</h3>
					<div class="row">
						<!-- INPUTS -->
						<div class="panel">
							<div class="panel-heading">
								<h3 class="panel-title">添加选题<span style="color: red">${message}</span><br /></h3>
							</div>
							<!-- 表单用于提交数据  action="/EducationSystem/insertStudent" -->
							<form action="/bysjxt/SelectedInsert" method="post">
								<div class="panel-body">
									*学生名： <select name="cStudentID" class="form-control">
											<%
											if(sf.equals("student")) {
											%>
											<option value="${login_id}">${login_name}</option>
											<% }else { %>
											<c:forEach items="${StudentList}" var="item">
											<option value="${item.cStudentID}">${item.cStudentName}</option>
											</c:forEach>
											<%
											}
											%>
										</select> <br>			
									*课题名： <select name="cTitleID" class="form-control">
										<c:forEach items="${TopiceList}" var="item">
											<option value="${item.cTitleID}">${item.vTitleName}</option>
										</c:forEach>
									</select> <br>
										<input type="hidden" name="cState" class="form-control" value="申请">
									<br>
								</div>
								<div class="row">
									<div class="col-md-2"></div>

									<div class="col-md-4">
										<button type="submit" class="btn btn-success btn-block">提交</button>
									</div>

									<div class="col-md-4">
										<button type="reset" class="btn btn-danger btn-block">重置</button>
									</div>
									<div class="col-md-2"></div>
								</div>
							</form>
						</div>
						<!-- END INPUTS -->
					</div>
				</div>
			</div>
			<!-- END MAIN CONTENT -->
		</div>
		<!-- END MAIN -->
		<div class="clearfix"></div>
		<footer>
		<div class="container-fluid">
			<p class="copyright">
				Copyright &copy; 2020.GWNG.<a href="https://www-new.gwng.edu.cn/" target="_blank"
					title="广外南国">广外南国</a> - Made by <a
					href="https://www.baidu.com/" title="陆学嘉" target="_blank">陆学嘉</a>
			</p>
		</div>
		</footer>
	</div>
	<!-- END WRAPPER -->
	<!-- Javascript -->
	<script src="assets/vendor/jquery/jquery.min.js"></script>
	<script src="assets/vendor/bootstrap/js/bootstrap.min.js"></script>
	<script src="assets/vendor/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	<script src="assets/scripts/klorofil-common.js"></script>
</body>

</html>